package hao.d0312;

public class MyCalc {
    private int n1,n2;

    public void MyCalc(){
        n1 = 3;
        n2 = 2;
    }
    public void addition(){
        System.out.println((n1+n2));
    }
    public void subtration(){
        System.out.println((n1-n2));
    }
    public void multiplication(){
        System.out.println((n1*n2));
    }
    public void division(){
        System.out.println((n1/n2));
    }

    public static void main(String[] args) {
        MyCalc myCalc = new MyCalc();
        myCalc.MyCalc();
        myCalc.addition();
        myCalc.subtration();
        myCalc.multiplication();
        myCalc.division();
    }
}
